package com.web44.spring.web;

import com.web44.spring.service.UserService;
import com.web44.spring.service.impl.UserServiceImpl;

/**
 * @Title: UserController
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/1/9 9:05
 */
public class UserController {

    // 注入UserService
    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void queryUserWeb() {
        System.out.println("用户正在访问....");

        userService.queryUserService();

    }
}
